package com.alks.function.data.request.procurement;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@NoArgsConstructor
public class LotNoRequest7 {

    @ApiModelProperty(value = "接口类型：1.取消处理(增加取消数量)2.取消还原处理（减少取消数量）",name = "function")
    private int function;

    @ApiModelProperty(value = "id",name = "id")
    private String id;

    @ApiModelProperty(value = "订购单号")
    private String purNo;

    @ApiModelProperty(value = "类型",name = "type")
    private String purType;

    @ApiModelProperty(value = "型体颜色")
    private String color;

    @ApiModelProperty(value = "型体")
    private String style;

    @ApiModelProperty(value = "汇总号")
    private String sumNo;

    @ApiModelProperty(value = "指令")
    private String lotDetail;

    @ApiModelProperty(value = "请购单号")
    private String reqNo;

    @ApiModelProperty(value = "客户")
    private String custom;

    @ApiModelProperty(value = "材料ID")
    private String mtlNo;

    @ApiModelProperty(value = "材料颜色")
    private String mtlColor;

    @ApiModelProperty(value = "材料名称")
    private String mtlName;

    @ApiModelProperty(value = "材料规格")
    private String mtlSpec;

    @ApiModelProperty(value = "材料单位")
    private String mtlUnit;

    @ApiModelProperty(value = "订购标识")
    private String purFlag;

    private String companyId;

    @ApiModelProperty(value = "正单量")
    private Float qty;

    @ApiModelProperty(value = "取消正单量:可编辑")
    private Float qty2;

    @ApiModelProperty(value = "预加量")
    private Float overQty;

    @ApiModelProperty(value = "多购量")
    private Float minusQty;

    @ApiModelProperty(value = "取消多购量:可编辑")
    private Float minusQty2;

    @ApiModelProperty(value = "订购数量")
    private Float purQty;

    @ApiModelProperty(value = "回厂数量")
    private Float backQty;

    @ApiModelProperty(value = "可取消数量（订单量purQty-回厂数量backQty）")
    private Float cancelCanQty;

    @ApiModelProperty(value = "已取消数量")
    private Float cancelDidQty;

    @ApiModelProperty(value = "取消数量（前端做计算：正单量qty2+多购量minusQty2）")
    private Float cancelQty;

    @ApiModelProperty(value = "订购日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @DateTimeFormat("yyyy/MM/dd")
    private Date purDate;
}
